from socket import *

# 创建tcp客户端套接字
clientSocket = socket(AF_INET, SOCK_STREAM)

serAddr = ("169.254.185.69", 8899)
# 连接服务器
clientSocket.connect(serAddr)
clientSocket.send("haha".encode("gb2312"))
recvData = clientSocket.recv(1024)
print(recvData)

clientSocket.close()
